package com.yourbatis.syntax;

import com.yourbatis.interpreter.Environment;

public class VariableReference implements Expression {
    private final String name;

    public VariableReference(String name) {
        this.name = name;
    }

    @Override
    public Object eval() {
        // 从环境中获取变量值
        return Environment.get(name);
    }
}
